from flask_script import Manager
from flask_migrate import Migrate,MigrateCommand
from info import create_app
from werkzeug.routing import BaseConverter



app = create_app('config_name')

manager = Manager(app)
Migrate(app, db)
manager.add_command('db', MigrateCommand)



@app.route('/')
def index():
    return '成功创建项目啦'

if __name__ == '__main__':
    manager.run()